package com.shuwen.gcdj.mapper.mysql.basics;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.basicsMaintenance.request.OrderListReq;
import com.shuwen.gcdj.bean.basicsMaintenance.response.OrderMainResp;
import com.shuwen.gcdj.bean.equipmentMaintenance.request.EquipmentMaintainReportReq;
import com.shuwen.gcdj.entity.basics.OrderMaintenanceorder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 小逸
* @description 针对表【order_maintenanceorder(维保工单表 )】的数据库操作Mapper
* @createDate 2023-05-11 09:32:50
* @Entity generator.domain.OrderMaintenanceorder
*/
@Mapper
public interface OrderMaintenanceorderMapper extends BaseMapper<OrderMaintenanceorder> {

    IPage<OrderMainResp> getList(Page<OrderMainResp> page, @Param("req")OrderListReq req);

    //统计维保
    List<OrderMainResp> getStatistic(@Param("req") EquipmentMaintainReportReq req, @Param("equipmentId")List<String> equipmentId);

    List<OrderMainResp> getTodayMaintenanceListByEquipmentId(String equipmentId);
}




